package com.itcncp.wechat.app.dao.model;

import java.io.Serializable;
import java.util.Date;

public class UserVerifyJnl implements Serializable {
    /**
     * 手机号
     *
     * @mbg.generated
     */
    private String mobile;

    /**
     * 验证码
     *
     * @mbg.generated
     */
    private String verifCode;

    /**
     * 生成时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 失效时间
     *
     * @mbg.generated
     */
    private Date fairTime;

    /**
     * 状态 1:未验证 2:已验证
     *
     * @mbg.generated
     */
    private Byte state;

    /**
     * 验证码类型 1.用户注册验证码 2.登录确认验证码 3.修改密码验证码 4.身份验证验证码 5.信息变更验证码 6.活动确认验证码
     *
     * @mbg.generated
     */
    private Byte type;

    private String remark;

    private static final long serialVersionUID = 1L;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getVerifCode() {
        return verifCode;
    }

    public void setVerifCode(String verifCode) {
        this.verifCode = verifCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getFairTime() {
        return fairTime;
    }

    public void setFairTime(Date fairTime) {
        this.fairTime = fairTime;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mobile=").append(mobile);
        sb.append(", verifCode=").append(verifCode);
        sb.append(", createTime=").append(createTime);
        sb.append(", fairTime=").append(fairTime);
        sb.append(", state=").append(state);
        sb.append(", type=").append(type);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserVerifyJnl other = (UserVerifyJnl) that;
        return (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getVerifCode() == null ? other.getVerifCode() == null : this.getVerifCode().equals(other.getVerifCode()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getFairTime() == null ? other.getFairTime() == null : this.getFairTime().equals(other.getFairTime()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getVerifCode() == null) ? 0 : getVerifCode().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getFairTime() == null) ? 0 : getFairTime().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}